package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName api_financial_kpi
 */
@TableName(value ="api_financial_kpi")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ApiFinancialKpi implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 报告日期
     */
    private String date;

    /**
     * 股票代码
     */
    private String stockNo;

    /**
     * 股票名称
     */
    private String stockName;

    /**
     * 扣除非经常性损益后的净利润(元)
     */
    private BigDecimal kflr;

    /**
     * 报告年份，如2021
     */
    private String y;

    /**
     * 报告季度，1:一季报，2：中报，3：三季报，4：年报
     */
    private String q;

    /**
     * 创建时间
     */
    private Timestamp created;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public ApiFinancialKpi(String date, String stockNo, String stockName, BigDecimal kflr, String y, String q) {
        this.date = date;
        this.stockNo = stockNo;
        this.stockName = stockName;
        this.kflr = kflr;
        this.y = y;
        this.q = q;
    }
}